package com.liu.yupao.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author lqh
 * @since 2025-11-10 21:53
 * 扫描添加有@ServerEndPoint注解的Bean
 */
@Configuration
public class WebSocketConfig {

    @Bean   //作用：将返回值交给spring去托管
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
